import request from '@/utils/request'

// 查询决策方案列表
export function listScheme(query) {
  return request({
    url: '/decision/scheme/list',
    method: 'get',
    params: query
  })
}

// 查询决策方案详细
export function getScheme(schemeId) {
  return request({
    url: '/decision/scheme/' + schemeId,
    method: 'get'
  })
}

// 新增决策方案
export function addScheme(data) {
  return request({
    url: '/decision/scheme',
    method: 'post',
    data: data
  })
}

// 修改决策方案
export function updateScheme(data) {
  return request({
    url: '/decision/scheme',
    method: 'put',
    data: data
  })
}

// 删除决策方案
export function delScheme(schemeId) {
  return request({
    url: '/decision/scheme/' + schemeId,
    method: 'delete'
  })
}
// 上报方案状态
export function report(schemeId) {
  return request({
    url: '/decision/scheme/report/' + schemeId,
    method: 'put'
  })
}
//审核方案状态
export function examine(schemeId) {
  return request({
    url: '/decision/scheme/examine/' + schemeId,
    method: 'put'
  })
}